% inner_b_list=[1,5,6,7,8];inner_a_list=[2,3,4];
history2=askstarthistory2(:,1);
for j=1:length(history2)
    
    if(history2(j)==2)
        askstarthistory2(j,1)=3;
    end
    if(history2(j)==3)
        askstarthistory2(j,1)=5;
    end
    if(history2(j)==4)
        askstarthistory2(j,1)=7;
    end
    if(history2(j)==5)
        askstarthistory2(j,1)=2;
    end
    if(history2(j)==6)
        askstarthistory2(j,1)=4;
    end
    if(history2(j)==7)
        askstarthistory2(j,1)=6;
    end
   
end

as=askhistory(:,1);
for j=1:length(as)
    if(as(j)==1)
        askhistory(j,1)=1;
    end
    if(as(j)==2)
        askhistory(j,1)=3;
    end
    if(as(j)==3)
        askhistory(j,1)=5;
    end
    if(as(j)==4)
        askhistory(j,1)=7;
    end
    if(as(j)==5)
        askhistory(j,1)=2;
    end
    if(as(j)==6)
        askhistory(j,1)=4;
    end
    if(as(j)==7)
        askhistory(j,1)=6;
    end
    if(as(j)==8)
        askhistory(j,1)=8;
    end
end
as2=askhistory2(:,1);
for j=1:length(as2)
    if(as2(j)==1)
        askhistory2(j,1)=1;
    end
    if(as2(j)==2)
        askhistory2(j,1)=3;
    end
    if(as2(j)==3)
        askhistory2(j,1)=5;
    end
    if(as2(j)==4)
        askhistory2(j,1)=7;
    end
    if(as2(j)==5)
        askhistory2(j,1)=2;
    end
    if(as2(j)==6)
        askhistory2(j,1)=4;
    end
    if(as2(j)==7)
        askhistory2(j,1)=6;
    end
    if(as2(j)==8)
        askhistory2(j,1)=8;
    end
end

history1=askstarthistory(:,1);
for j=7:length(history1)
    if(history1(j)==1)
        askstarthistory(j,1)=1;
    end
    if(history1(j)==2)
        askstarthistory(j,1)=3;
    end
    if(history1(j)==3)
        askstarthistory(j,1)=5;
    end
    if(history1(j)==4)
        askstarthistory(j,1)=7;
    end
    if(history1(j)==5)
        askstarthistory(j,1)=2;
    end
    if(history1(j)==6)
        askstarthistory(j,1)=4;
    end
    if(history1(j)==7)
        askstarthistory(j,1)=6;
    end
end